import request from '@/plugins/axios/request';
let baseURL = process.env.VUE_APP_BASE_API + "/flow/menu"

// 新增或修改菜单
export function saveOrUpdate(data) {
  return request({
    url: `${baseURL}/saveOrUpdate`,
    method: 'post',
    data: data,
    isShowMessage: false
  })
}

// 菜单列表
export function allMenu(data) {
  return request({
    url: `${baseURL}/allMenu`,
    method: 'get',
    params: data,
    isShowMessage: false
  })
}
export function deleteFun(data) {
  return request({
    url: `${baseURL}/delete`,
    method: 'post',
    data: data,
    isShowMessage: true
  })
}



